package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Lenovo-songfengli on 2016/9/19.
 */
@Entity
@Table(name = "RC_CORP_RATING")
public class RcCorpRating extends BaseEntity {
    /** 客户id */
    @Id
    @Column(name="CUST_ID", length=10)
    private String custId;
    /** 最终风险等级(A-F) */
    @Column(name="FINAL_LEVEL")
    private String finalLevel;
    /** 风险等级(a-f) */
    @Column(name="RC_LEVEL")
    private String rcLevel;
    /** 分值 */
    @Column(name="SCORE")
    private BigDecimal score;
    /** 人工定级 */
    @Column(name="MANUAL_LEVEL")
    private String manualLevel;
    /** 人工定级说明 */
    @Column(name="MANUAL_LEVEL_EXPLANATION", length=100)
    private String manualLevelExplanation;
    /** 创建时间 */
    @Column(name="CREATED_TS")
    private Date createdTs;
    /** 最后操作时间 */
    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;
    /** 最后操作用户id  */
    @Column(name="LAST_UPD_USER_ID", length=10)
    private String lastUpdUserId;
    /** 乐观锁版本号 */
    @Version
    @Column(name = "VERSION")
    private Integer version;

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getFinalLevel() {
        return finalLevel;
    }

    public void setFinalLevel(String finalLevel) {
        this.finalLevel = finalLevel;
    }

    public String getRcLevel() {
        return rcLevel;
    }

    public void setRcLevel(String rcLevel) {
        this.rcLevel = rcLevel;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public String getManualLevel() {
        return manualLevel;
    }

    public void setManualLevel(String manualLevel) {
        this.manualLevel = manualLevel;
    }

    public String getManualLevelExplanation() {
        return manualLevelExplanation;
    }

    public void setManualLevelExplanation(String manualLevelExplanation) {
        this.manualLevelExplanation = manualLevelExplanation;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getLastUpdUserId() {
        return lastUpdUserId;
    }

    public void setLastUpdUserId(String lastUpdUserId) {
        this.lastUpdUserId = lastUpdUserId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
